Ubuntu Software Management

raw: dpkg

1
2
3
4
5
6
dpkg -i xxx.deb
dpkg -r xxx.deb
dpkg --purge xxx.deb
dpkg -L xxx.deb
dpkg --info xxx.deb
dpkg -reconfigure xxx

dkpg is raw method to install without solving dependencies and existing software.

mature: apt-get

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
apt-get install softname1 softname2 softname3……
apt-get remove softname1 softname2 softname3……
apt-get remove --purge softname1
apt-get autoremove
apt-get clean //clean /var/cache/apt/archives
apt-get autoclean //clean the out-of-date files in /var/cache/apt/archives

apt-get update //update software information and database command
apt-get upgrade //update the system

apt-cache search rough_name
apt-cache show exact_name

pkg-config --libs opencv
pkg-config --cflags opencv
pkg-config --modversion opencv

apt-get is built on dkpg without saving the deb file. apt-get can solve dependencies and existing software. Note that when using dkpg, dkpg can circumvent apt-get, so apt-get don’t know the software installed by dkpg.

more mature: aptitude (GUI)

1
2
aptitude install softname1
aptitude remove softname1

aptitude is also built on dkpg and more powerful than apt-get.